package gui;

import java.awt.BorderLayout;
import java.awt.Rectangle;
import javax.swing.*;

/**
 *
 * @author Scott
 */
public class AdminUI extends GUI{


    //initialize components for administrators
     JPanel adminPanel = new JPanel();
     JPanel rosterPanel = new JPanel();

     JButton viewRosterButton = new JButton();
     Rectangle r;
     


    public AdminUI(JFrame mainFrame)
    {
        
        this.mainFrame = mainFrame;
        r = new Rectangle(400,600);

    }

    public void drawAdminComponents(){
    //set button labels
     viewRosterButton.setText("View Roster");

     //initialize listeners
     viewRosterButton.addActionListener(new RosterListener(db, mainFrame));

    //add buttons to the panel
     adminPanel.add(viewRosterButton);

    //add panel to the frame
     mainFrame.getContentPane().add(adminPanel, BorderLayout.NORTH);
     mainFrame.pack();    
     mainFrame.setBounds(r);
     mainFrame.setLocationRelativeTo(null); //centers it on screen
     mainFrame.setResizable(false);
     mainFrame.setVisible(true);
    

    }

}
